package com.powernode.money.service;

import com.powernode.money.model.User;
import com.powernode.money.vo.ApiResult;

public interface UserService {
    int countUsers();

    User queryByPhoneLoginPassword(String phone, String loginPassword);

    User queryByPrimaryKey(Integer id);

    User queryByPhone(String phone);

    //发送短信验证码
    boolean sendSmscode(String phone);

    //校验短信验证码
    boolean verifySmsCode(String phone, String code);

    //注册（向数据库添加一个User信息，添加FinanceAccount
    User register(String phone, String loginPassword);

    int executeUpdateByPrimaryKeySelective(User record);

    ApiResult verifyRealName(String realName, String cardNo);

}
